﻿#region Usings

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;

#endregion

namespace xConnected.Core.Model
{
    [Serializable]
    [DataContract]
    [DisplayColumn("Name")]
    public class Technology : PersistentEntity
    {
        public Technology()
        {
            CompanyProfiles = new List<CompanyProfile>();
            Positions = new List<Position>();
        }

        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public int? IndustryId { get; set; }

        [DataMember]
        public virtual Industry Industry { get; set; }

        [DataMember]
        public virtual IList<TechnologySkill> TechnologySkills { get; set; }

        [DataMember]
        public virtual IList<CompanyProfile> CompanyProfiles { get; set; }

        [DataMember]
        public virtual IList<Position> Positions { get; set; }
    }
}